<template>
    <div v-if="type" class="sss">
        <Game :id="id" v-if="type=='game'"/>
        <Article :id="id" v-if="type=='article'"/>
        <Work :id="id" v-if="type=='work'"/>
        <img loading="lazy" :id="id" v-if="type=='img'"/>
    </div>
</template>

<script>
import Game from '@/components/gameInfo'
import Article from '@/components/articleinfo'
import Work from '@/components/workinfo'
import Img from '@/components/ImgDetail'
export default{
    data(){
        return {

        }
    },
    components:{
        Game,Article,Work,Img
    },
    props:['id','type'],
    mounted(){
    }
}
</script>